/*
 * Log.h
 *
 *  Created on: Jul 9, 2009
 *      Author: oferbart
 */

#ifndef LOG_H_
#define LOG_H_

#include <iostream>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <sstream>
#include <cstdio>
#include <errno.h>
using namespace std;

#define PRIORITY_THRESHOLD 0
#define PRIORITY_DEFAULT 0

class Log {
public:
	Log();
	virtual ~Log();

	static void log(const std::string& msg, int priority = PRIORITY_DEFAULT, string filter = "");
	static void log(std::ostringstream& msgStream, int priority = PRIORITY_DEFAULT, string filter = "");
//	static void log(const std::string& msg, string filter);
//	static void log(std::ostringstream& msgStream, string filter);

};

#endif /* LOG_H_ */
